package com.example.service.impl;

import com.example.dao.AdminDao;
import com.example.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminDao adminDao;

    @Override
    public int getUsersCount() {
        return adminDao.countUsers();
    }

    @Override
    public int getVolunteersCount() {
        return adminDao.countVolunteers();
    }

    @Override
    public int getOrganizationsCount() {
        return adminDao.countOrganizations();
    }

    @Override
    public int getPendingReviewsCount() {
        return adminDao.countPendingReviews();
    }
}